import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router/router'
import store from '@/store'

//静态资源
import '@/assets'
//引入Elmessage和Elloading的css样式文件
import 'element-plus/theme-chalk/el-loading.css';
import 'element-plus/theme-chalk/el-message.css';

//路由守卫
import './utils/permission'

import VueUeditorWrap from 'vue-ueditor-wrap'

const app = createApp(App);
app.use(router);
app.use(store);
app.use(VueUeditorWrap)

app.mount('#app')

let sysTitle = process.env.NODE_ENV === 'development' ? process.env.VUE_APP_SYSTITLE : window.webConfig.webSystemTitle;
document.title = sysTitle;
